const mongooose = require('mongoose');

let Schema = mongooose.Schema

let aticleSchema = new Schema({
    title: String,
    author: String,
    createTime: Date.now(),
    slug: String,
    content: [{
        paragraphNumber: {
            type: Number,
            autoIndex: true,
        },
        paragraphTitle: String,
        paragraphContent: String,
    }]
})

module.exports = {
    aticleSchema
}